<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
<div class="we7-page-title">
	自动回复
</div>
<ul class="we7-page-tab">
	<li><a href="<?php  echo url('platform/reply', array('m' => 'keyword'));?>">关键字自动回复 </a></li>
	<li><a href="<?php  echo url('platform/reply', array('m' => 'special'));?>">非文字自动回复</a></li>
	<li><a href="<?php  echo url('platform/reply', array('m' => 'welcome'));?>">首次访问自动回复</a></li>
	<li><a href="<?php  echo url('platform/reply', array('m' => 'default'));?>">默认回复</a></li>
	<li><a href="<?php  echo url('platform/reply', array('m' => 'service'));?>">常用服务</a></li>
	<li><a href="<?php  echo url('platform/reply', array('m' => 'userapi'));?>">自定义接口回复</a></li>
	<li class="active"><a href="<?php  echo url('profile/reply-setting');?>">回复设置</a></li>
</ul>
<div class="alert alert-info">
	<p><i class="fa fa-exclamation-circle"></i> 设置回复次数，则对于每一个用户，在当天内，某一个关键字连续并重复回复超过设置次数后，自动回复失效；</p>
	<p><i class="fa fa-exclamation-circle"></i> 为0表示不限制，最大可设置50。</p>
</div>
<form class="form-horizontal form" action="<?php  echo url('profile/reply-setting/post', array('m' => $m))?>" method="post" enctype="multipart/form-data">
	<table class="table we7-table table-hover table-form  we7-form">
		<col width="150px " />
		<col />
		<tr>
			<th class="text-left" colspan="2">回复设置</th>
		</tr>
		<tr>
			<td class="table-label">设置回复次数</td>
			<td>
				<input type="number" name="times" min="0" max="50" value="<?php  echo $times;?>" class="form-control">
			</td>
		</tr>
	</table>
	<input type="submit" name="submit"  value="保存" class="btn btn-primary" style="padding: 6px 50px;"/>
	<input type="hidden" name="token" value="<?php  echo $_W['token'];?>">
	<input type="hidden" name="m" value="<?php  echo $m;?>">
</form>
<?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>
